package file;
/**
 * 在当前目录下创建100个文件，名字为test1.txt - test100.txt
 */
import javax.activation.MailcapCommandMap;
import java.io.File;
import java.io.IOException;

public class Test01 {
    public static void main(String[] args) throws IOException {
        for (int i = 1; i <=100 ; i++) {
            File file = new File("./tedu-javase02/test"+i+".txt");
            if (!file.exists()){
                file.createNewFile();
            }
        }
        System.out.println("创建完毕");
    }
}
